/**
 * 
 */
package com.googlecode.gauth.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.googlecode.gauth.beans.User;

/**
 * @author asanthan
 * 
 */
public interface UserService {

	boolean isLoggedIn(HttpServletRequest pRequest, HttpServletResponse pResponse);

	boolean isAdmin(HttpServletRequest pRequest, HttpServletResponse pResponse);

	User getLoggedInUser(HttpServletRequest pRequest, HttpServletResponse pResponse);

	String getLoginInUrl(HttpServletRequest pRequest, HttpServletResponse pResponse);

	String getLogOutUrl(HttpServletRequest pRequest, HttpServletResponse pResponse);
	
	boolean processCallBack(HttpServletRequest pRequest, HttpServletResponse pResponse);
}
